package com.itmuch.cloud.microserviceconsumermovie.controller;

import com.itmuch.cloud.microserviceconsumermovie.entity.User;
import com.itmuch.cloud.microserviceconsumermovie.feign.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/********************************************************
 *@Desc: 电影消费者
 *@Author: ZRP
 *@Date: 2017/12/18 12:15
 ********************************************************/
@RestController
public class MovieController {

    @Autowired
    private UserFeignClient userFeignClient;


    @GetMapping(value = "/movie/{id}")
    public User findById(@PathVariable Long id){
        return userFeignClient.findById(id);
    }

}
